unitDef = {
	unitname            = "catapult",
	name                = "Catapult",
	description         = "A siege engine that hurls great boulders",
	acceleration        = 0.1,
	brakerate           = 0.05,
	buildcostenergy     = 100,
	buildcostmetal      = 100,
	buildpic            = "catapult.png",
	buildtime           = 100,
	canattack           = true,
	canguard            = true,
	canmove             = true,
	canpatrol           = true,
	canstop             = true,
	category            = "land structure",
	collisionVolumeOffsets   = "0 0 0",
	collisionVolumeScales    = "30 40 40",
	collisionVolumeTest      = 1,
	collisionVolumeType      = "box",
	corpse              = "maledead.s3o", --fixme
	footprintx          = 3,
	footprintz          = 4,
	hightrajectory      = 2,
	icontype            = "default", 
	idleautoheal        = 0,
	idletime            = 500,
	leavetracks         = true,
	mass                = 200,
	maxdamage           = 100,
	maxslope            = 30,
	maxvelocity         = .5,
	reversevelocity     = .3, --does this even work? :(
	movementclass       = "siege_TANK",
	movestate           = 0,
	objectname          = "catapult.s3o",
	script              = "catapult_anim.lua",
	
	sfxtypes            = {
		explosiongenerators = {
			"custom:NONE",
		},
	},
	
	sightdistance       = 200,
	turnrate            = 100,
	upright             = false,
	
	weapons             = {
		{ def = "boulder", mainDir = "0 0 1", maxAngleDif = 30 },
	},
	
	weaponDefs          = {
	
		boulder = {
		name            = "Boulder",
		accuracy        = 1024,
		areaofeffect    = 100,
		avoidfriendly   = false,
		craterboost     = 10,
		cratermult      = 5,
		
		damage = {
			default     = 50,
			light       = 50,
			chain       = 50,
			structure   = 50,
		},
		
		edgeeffectivness     = 0.1,
		explosionGenerator   = "custom:dirtplosion",
		impactOnly           = false,
		impulseboost         = 10,
		impulsefactor        = 2,
		interceptedbyshieldtype = 1,
		model                = "boulder.s3o",
		--mygravity            = 0.1,
		metalpershot         = 5,
		--noexplode            = true,
		projectiles          = 5,
		proximitypriority    = -2,
		range                = 1500,
		reloadtime           = 8,
		sprayangle           = 1200,
		size                 = 10,
		stockpile            = true,
		stockpiletime        = 15,
		tolerance            = 10000,
		turret               = false,
		weapontype           = "Cannon",
		weaponvelocity       = 600,
		},
	},
}

return lowerkeys({ catapult = unitDef })
